﻿@model DiplomaWeb.Models.CompaniesAndLecturers.StudentGroupsViewModel

<script type="text/javascript" language="javascript">
    function GetGroupDetails(groupId) {
        var path = '@Url.RouteUrl("Default", new {controller = "SystemManagers", action = "GetGroupPracticeDetails"})';
        $.ajax({
            url: path,
            type: "POST",
            async: false,
            data: ({ groupId: groupId }),
            success: function (response) {
                $("#propertiesList").html(response);
            }
        });
    }
</script>
@foreach (var item in Model.Groups) {
<div>
    <a href="#" class="hoverable largeText" onclick="GetGroupDetails('@item.Id');">
        @item.Name
    </a>
</div>
}